package minigame;

import java.awt.Image;

public class thuoctinh {
	private Image image;
	protected int x;
    protected int y;
    protected int dx;
    protected boolean shit;
    private boolean visible;
    
    public thuoctinh() {
        visible = true;
        shit = false;
    }
    
	public void setImage(Image image) {
        this.image = image;
    }
	
	public boolean isVisible() {
        return visible;
    }
	
	public Image getImage() {
        return image;
    }
	
	public void setX(int x) {
        this.x = x;
    }

    public void setY(int y) {
        this.y = y;
    }
    public int getY() {
        return y;
    }

    public int getX() {
        return x;
    }

    public void die() {
        visible = false;
    }
    
    public void shit() {
        shit = true;
    }
    
    public void egg() {
        shit = false;
    }
    
    public boolean isShit() {
        return shit;
    }
}
